<template>
  <div>
    <header class="header-container">
      <div class="logo">
        <div class="logo-img"></div>
        <div class="logo-text">AnyLayout</div>
      </div>
      <input />
      <div class="operate">
        <Button size="small" type="primary" ghost @click="exportHtml">
          导出 HTML
        </Button>
        <Button size="small" type="primary" ghost @click="exportVue">
          导出 Vue
        </Button>
        <Button size="small" type="primary" ghost @click="sendSaveJsonEvent">
          导出 Json
        </Button>
      </div>
    </header>
  </div>
</template>

<script setup>
import { Button } from "ant-design-vue";

const exportHtml = () => {};
const exportVue = () => {};
const sendSaveJsonEvent = () => {};
</script>

<style lang="less" scoped>
.header-container {
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: space-between;
  // align-items: center;
  background: #fff;
  margin-bottom: 1px;
  position: fixed;
  top: 0;
  z-index: 9;

  .logo {
    display: flex;
    width: 150px;
    height: 45px;
    justify-content: flex-start;
    align-items: center;
    margin-left: 10px;
  }

  .logo-img {
    width: 40px;
    height: 40px;
    background: url("@/assets/logo3.png");
    background-size: cover;
  }

  .logo-text {
    width: 80px;
    height: 40px;
    font-size: 20px;
    font-weight: 700;
    line-height: 40px;
    text-align: center;
  }

  .header {
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    margin-bottom: 1px;
    position: fixed;
    top: 0px;
    z-index: 103;
  }

  .operate {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
  }
}
</style>
